#!/usr/bin/env python
# -*- coding: UTF-8 -*-
#
# Copyright [Gtlions Lai].
# Create Date:
# Update Date:
"""summarization ahout this script.

detail ahout this script

   Class(): summarization about Class
   ...
   function(): summarization about function
   ...
"""
__authors__ = '"Gtlions Lai" <gtlions.l@qq.com>'

import sys
from PyQt4 import QtGui, QtCore

class Main(QtGui.QMainWindow):
    def __init__(self, parent=None):
        QtGui.QMainWindow.__init__(self)
        self.resize(500, 300)
        self.setWindowTitle('toolbar')
        self.exit = QtGui.QAction(QtGui.QIcon('icon.png'), 'Exit it', self)
        self.exit.setShortcut('Ctrl+q')
        self.connect(self.exit, QtCore.SIGNAL('triggered()'), QtGui.qApp, QtCore.SLOT('quit()'))
        self.toolbar1 = self.addToolBar('tooolbar')
        self.toolbar2 = self.addToolBar('tooolba1r')
        self.toolbar1.addAction(self.exit)


if __name__ == "__main__":
    app = QtGui.QApplication(sys.argv)
    main = Main()
    main.show()
    sys.exit(app.exec_())